package com.yjs.app.trade.service.service.sys.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjs.app.trade.service.service.sys.UserAuthorityService;
import com.yjs.base.security.dubbo.service.IDubboLoginService;

@Service("userAuthorityService")
public class UserAuthorityServiceImpl implements UserAuthorityService {

	@Autowired
	private IDubboLoginService dubboLoginService;
	
	@Override
	public String appLogin(String username, String password, String key) {
		try {
			return dubboLoginService.appLogin(username, password, key);
		} catch (Exception e) {
			return null;
		}
	}
	
	@Override
	public String updatePwd(String username, String oldPwd, String newPwd, String tokenKey, String key) {
		return dubboLoginService.AppUpdatePwd(username, oldPwd, newPwd, key, tokenKey);
	}
}
